using UnityEngine;
using UnityEngine.Networking;
namespace Miya.Hellow
{
    public static class Common
    {
        public static AsyncOperation HTTPGet(string url)
        {


            UnityWebRequest QQ = UnityWebRequest.Get(url);

            return QQ.SendWebRequest();

            //while (QQ.isDone) { yield return new WaitForSeconds(0.1f); }

            //if(!string.IsNullOrEmpty(QQ.error) ) 
            //{
            //    yield return QQ.downloadHandler.text;
            //}else
            //{
            //    yield return QQ.error;
            //}

        }
    }
}

